#ifndef SETTINGDIALOG_H
#define SETTINGDIALOG_H

#include "../WingHexExplorer/WingHexExplorer/plugin/iwingplugin.h"
#include "settings.h"
#include <QDialog>

class SettingDialog : public QObject {
  Q_OBJECT

public:
  explicit SettingDialog(IWingPlugin *plugin);
  ~SettingDialog();

  int show();

private slots:
  void on_btn_elf_header_clicked();
  void on_btn_program_table_clicked();
  void on_btn_section_header_clicked();
  void on_btn_symbol_clicked();
  void on_btn_dysymbol_clicked();
  void on_buttonBox_accepted();

private:
  QColor elf_header_color, program_table_color, section_header_color,
      symbol_color, dysymbol_color;

  Settings *settings;

  QDialog *dialog = nullptr;

private:
  bool chooseColor(QColor orign, QColor &color);
};

#endif // SETTINGDIALOG_H
